package com.api;

import cemp.common.api.reponse.RestStockAllResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "stock-core")
public interface StockCommonQueryApi {

    @GetMapping("/api/fetchdata/allstocks")
    List<RestStockAllResponse> getAllStocks();

    @GetMapping("/api/isopen")
    boolean isOpen(@RequestParam("date") String date);
}
